#ifndef TEMPLATEVIEWER_H
#define TEMPLATEVIEWER_H

#include <QWebView>

class TemplateViewer : public QWebView
{
    Q_OBJECT
public:
    explicit TemplateViewer(QWidget *parent = 0);

    void applyJQuery();
    QStringList pathList();
    void highlight(bool state);
    QString pathValue( const QString &xpath );

    QString pageCodecName();

private:
    QString fileContent( const QString &fileName );
    QString escapeJavascriptString(const QString & str);
    
signals:
    
public slots:

private:
    QString jQuery;
    QString m_highlight;
    QString m_choice;
    QString m_getPathValue;
    
};

#endif // TEMPLATEVIEWER_H
